package com.watt.core.mvc.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * 问答日志
 */
@Data
@TableName("knowledge_qa_logs")
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class QALogsPo {

	/**主键*/
	@TableId(type = IdType.ASSIGN_UUID)
	private String id;
	/**创建者*/
	private String createBy;
	/**创建时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	private Date createDate;
	/**更新者*/
	private String updateBy;
	/**更新时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	private Date updateDate;
	/**备注信息*/
	private String remarks;
	/**逻辑删除标记（0：显示；1：隐藏）*/
	private String delFlag;
	/**问题*/
	private String question;
	/**评分*/
	private Double score;
	/**授权ID，接入渠道（微信，机器人等）*/
	private String channelId;
	/**问题ID*/
	private String questionId;
}
